package com.samsonsoft.spring.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.samsonsoft.spring.web.dao.Actor;
import com.samsonsoft.spring.web.dao.ActorsDAO;

@Service("offersService")
public class ActorsService {
	
	private ActorsDAO actorsDao;
	
	
	
	public ActorsService() {
		System.out.println("ActorsService loaded successfully");
	}

	@Autowired
	public void setActorsDao(ActorsDAO actorsDao){
		this.actorsDao = actorsDao;
	}
	
	public List<Actor> getCurrent(){
	return actorsDao.getActors();
	
	}

}
